<template>
  <el-container class="common-container">
    <div class="common-aside">
      <el-aside class="common-aside" :width="$store.state.navCollapse ? '60px' : '190px'">
        <common-aside />
      </el-aside>
    </div>
    <el-container>
      <el-header class="common-header">
        <common-head />
      </el-header>
      <!-- <nav-tabs /> -->
      <el-main class="common-main">
        <router-view />
      </el-main>
      <!-- <el-footer class="common-footer">footer</el-footer> -->
    </el-container>
  </el-container>
</template>

<script>
import CommonHead from '../../components/CommonHead.vue'
import CommonAside from '../../components/CommonAside.vue'
import NavTabs from '../../components/NavTabs.vue'
export default {
  name: 'AdminView',
  components: {
    CommonHead,
    CommonAside,
    NavTabs
  }
}
</script>

<style lang="scss" scoped>
.common-container {
  height: 100vh;
  width: 100%;
  background-color: #ededed;

  .common-aside {
    height: 100%;
    background-color: rgb(27, 34, 70);
    // overflow-y: hidden;
    // overflow-x: hidden;
  }

  .common-header {
    // background-color: #8bb4ff;
    // background-color: rgb(27, 34, 70);
    background-color: white;

  }

  .common-main {
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: white;
  }

}
</style>
